/**
 * 
 */
package com.jiang.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 * @管理员实体
 */
public class Admin implements Serializable{

	private static final long serialVersionUID = -6245193374073162501L;

	public Admin(){
		
	}
	
	private String aid;
	// 现在一个用户就一个角色，一个角色可以对应多个用户
	private Role role = new Role();
	private String password;
	private Integer type; // 0代表前台管理员 1代表后台管理员
	private Date lastdate; // 最后的登录时间
	private Integer flag; //标明是否是超级管理员
	private List<AdminLogs> adminLogs = new ArrayList<AdminLogs>();
	public String getAid() {
		return aid;
	}
	public void setAid(String aid) {
		this.aid = aid;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Date getLastdate() {
		return lastdate;
	}
	public void setLastdate(Date lastdate) {
		this.lastdate = lastdate;
	}
	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public List<AdminLogs> getAdminLogs() {
		return adminLogs;
	}
	public void setAdminLogs(List<AdminLogs> adminLogs) {
		this.adminLogs = adminLogs;
	}
	
	
}
